//
//  LoadDetailsHeaderCell.m
//  CreditHub
//
//  Created by chenglang on 2024/9/18.
//

#import "LoadDetailsHeaderCell.h"
#import "HomeRequest.h"

@implementation LoadDetailsHeaderCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    
    [self.viewday xhl_addTapActionWithBlock:^(UIGestureRecognizer * _Nonnull gestureRecoginzer) {
        [HomeRequest requestUploadPagePointType:@"103" lightat:self.dicInfo[@"glad"]];
    }];
    [self.viewRate xhl_addTapActionWithBlock:^(UIGestureRecognizer * _Nonnull gestureRecoginzer) {
        [HomeRequest requestUploadPagePointType:@"102" lightat:self.dicInfo[@"glad"]];
    }];
    [self.labelAmount xhl_addTapActionWithBlock:^(UIGestureRecognizer * _Nonnull gestureRecoginzer) {
        [HomeRequest requestUploadPagePointType:@"101" lightat:self.dicInfo[@"glad"]];
    }];
    
}
- (void)setDicInfo:(NSDictionary *)dicInfo{
    _dicInfo = dicInfo;
    self.labelAmount.text = dicInfo[@"guess"];
    self.labelTitle.text = dicInfo[@"mad"];
    
    NSDictionary *outof = [NSDictionary dictionaryWithDictionary:dicInfo[@"outof"]];
    self.labelTermTitle.text = CHString(outof[@"hustling"][@"outside"]);
    self.labelTerm.text = CHString(outof[@"hustling"][@"fruit"]);
    self.labelRateTitle.text = CHString(outof[@"supply"][@"outside"]);
    self.labelReate.text = CHString(outof[@"supply"][@"fruit"]);
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
